package org.dzl.springboot001.dao;

import org.apache.ibatis.annotations.Select;
import org.dzl.springboot001.entity.News;
import org.springframework.stereotype.Repository;

/**
 * @author 光的代言人
 */
@Repository
public interface NewsDao {
    @Select("select * from news where id=#{id}")
    public News getNewsById(int id);
}
